/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:visible;}
#cboxWrapper {max-width:none; overflow:visible;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0; background-color: #fff;
box-sizing: border-box;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

/* 
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{
	background: url(/img/popup_bg.png) repeat left top;
	opacity: 0.9;
	filter: alpha(opacity=90);
}
#colorbox{
	outline: 0;
	/*background-color: #fff;*/
	background-color: transparent
}
#cboxWrapper {
	border: 5px solid #badcea;
	background-color: #fff;
}
	#cboxTopLeft{width:45px; height:15px; background-color:#fff;}
	#cboxTopCenter{height:15px; background-color:#fff;}
	#cboxTopRight{width:45px; height:15px; background-color:#fff;}
	#cboxBottomLeft{width:45px; height:45px; background-color:#fff;}
	#cboxBottomCenter{height:70px; background-color:#fff;}
	#cboxBottomRight{width:45px; height:70px; background-color:#fff;}
	#cboxMiddleLeft{width:45px;background-color:#fff;}
	#cboxMiddleRight{width:45px; background-color:#fff;}

	#cboxContent{margin-top:35px;background:#fff;overflow:visible; text-align: center; }
		.cboxIframe{background:#fff;}
		#cboxError{padding:50px; border:1px solid #ccc;}
		#cboxLoadedContent{padding-top: 15px;border:15px solid #fff; border-top: none; background:#fff; }
		#cboxTitle{position:absolute; top:-17px; left:15px; color:#333; font-weight: bold; font-size: 15px;}
		#cboxCurrent{position:absolute; top:-15px; right:50px; color:#333; font-size: 10px;}
		#cboxLoadingGraphic{background:url(../img/loading.gif) no-repeat center center;}

		/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
		#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }

		/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
		#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
		#cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
		#cboxPrevious{
			margin: auto 0;
			background:url(../img/controls.png) no-repeat top left;
			background-size: 128px auto;
			width:45px; height:45px;
			text-indent:-9999px;
			display: block;
			position: absolute;
			left: -40px;
			top: 0;
			bottom: 0;
		}
		#cboxPrevious:hover{background-position:bottom left;}
		#cboxNext{
			margin: auto 0;
			z-index: 100;
			background:url(../img/controls.png) no-repeat top right;
			background-size: 128px auto;
			width:45px; height:45px;
			text-indent:-9999px;
			display: block;
			position: absolute;
			right: -40px;
			top: 0;
			bottom: 0;
		}
		#cboxNext:hover{background-position:bottom right;}
		#cboxClose{
			margin: 0 auto;
			position:absolute;
			bottom:-40px;
			left: 0;
			right:0;
			display:block;
			background:url(/img/popup_close.png) no-repeat top center;
			background-size: 72px auto;
			width:72px; height:32px;
			text-indent:-9999px;
			z-index: 1000;
		}
		#cboxClose:hover{background-position:bottom center;}


/* ===========================================
	MediaQueries
=========================================== */

/* スマホ----------------------------- */
@media screen and (max-width: 767px) {
	.cboxIframe{margin: 0 auto; }

	
	#cboxContent{margin-top:40px; background:#fff;overflow:visible; text-align: center; position: relative;}
	
	
#cboxWrapper { border: none; }
	#cboxTopLeft{width:5px; height:0;}
	#cboxTopCenter{height:0;}
	#cboxTopRight{width:5px; height:0;}
	#cboxBottomLeft{width:5px; height:60px;}
	#cboxBottomCenter{height:60px;}
	#cboxBottomRight{width:5px; height:60px;}
	#cboxMiddleLeft{width:5px;}
	#cboxMiddleRight{width:5px;}
	#cboxLoadedContent{
		padding-top: 0;
		/*border: 1px solid #efefef;*/
		background: #fff;
		position: relative;
		border: none;
	}
	#cboxContent:after{
		content: ' ';
		position: absolute;
		top: -2px;
		left: 0;
		width: 100%;
		height: 1px;
		border-top: 5px solid #fff;
		z-index: 1000;
	}
	#cboxContent:before{
		content: ' ';
		position: absolute;
		bottom: -2px;
		left: 0;
		width: 100%;
		height: 1px;
		border-bottom: 5px solid #fff;
		z-index: 1000;
	}
	#cboxPrevious{
		margin-top: 15px;
		background:url(../img/s/controls.png) no-repeat top left;
		background-size: 100px auto;
		width: 35px;
		height: 35px;
	}
	#cboxPrevious:hover{background-position:left top;}
	#cboxNext{
		margin-top: 15px;
		background:url(../img/s/controls.png) no-repeat top right;
		background-size: 100px auto;
		width: 35px;
		height: 35px;
	}
	#cboxNext:hover{background-position:right top;}
	#cboxClose{
		background:url(/img/s/popup_close.png) no-repeat top center;
		background-size: 72px auto;
	}
	#cboxTitle{ font-size: 1.2rem; }
	#cboxCurrent{ font-size: 0.9rem; }
	#cboxCurrent{top:-22px; right:44px;}
	#cboxTitle{top:-25px; left:8px; color:#333;}
}
